#!/bin/bash

if [[ "$(uname -s)" == "Linux" ]]; then
	if [[ "$(uname -n)" == "fedora" && "$(uname -m)" == "aarch64" ]]; then
		sudo dnf install -y fzf fd-find bat g++ git-lfs luarocks ripgrep npm zoxide neofetch zsh git curl npm neovim util-linux-user eza lsd cargo
		sudo dnf install -y npm && npm config set registry https://registry.npmmirror.com
		sudo dnf copr enable atim/lazygit -y && sudo dnf install lazygit -y
		sudo dnf copr enable atim/bottom -y && sudo dnf install bottom -y
	fi
fi

if [[ ("$(uname -s)" == "Linux" && "$(uname -m)" == "x86_64") || "$(uname -s)" == "Darwin" ]]; then
	brew install gdu && ln -sfn $(brew --prefix)/bin/gdu-go $(brew --prefix)/bin/gdu
	brew install neovim neovide python3 node exa eza bat lsd fd fzf ripgrep bottom lazygit zoxide tldr luarocks wget
	brew install node && npm config set registry https://registry.npmmirror.com
fi
